// vite.config.ts
import { defineConfig, loadEnv } from "file:///F:/%E6%B1%87%E6%80%BB/Electron/electron_ssh/node_modules/.pnpm/vite@5.4.6_@types+node@22.5.5_sass@1.69.5/node_modules/vite/dist/node/index.js";
import vue from "file:///F:/%E6%B1%87%E6%80%BB/Electron/electron_ssh/node_modules/.pnpm/@vitejs+plugin-vue@5.2.1_vite@5.4.6_@types+node@22.5.5_sass@1.69.5__vue@3.5.6_typescript@5.6.2_/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "path";
import AutoImport from "file:///F:/%E6%B1%87%E6%80%BB/Electron/electron_ssh/node_modules/.pnpm/unplugin-auto-import@0.18.3_@vueuse+core@11.3.0_vue@3.5.6_typescript@5.6.2___rollup@4.21.3_webpack-sources@3.2.3/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///F:/%E6%B1%87%E6%80%BB/Electron/electron_ssh/node_modules/.pnpm/unplugin-vue-components@0.27.4_@babel+parser@7.25.6_rollup@4.21.3_vue@3.5.6_typescript@5.6.2__webpack-sources@3.2.3/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///F:/%E6%B1%87%E6%80%BB/Electron/electron_ssh/node_modules/.pnpm/unplugin-vue-components@0.27.4_@babel+parser@7.25.6_rollup@4.21.3_vue@3.5.6_typescript@5.6.2__webpack-sources@3.2.3/node_modules/unplugin-vue-components/dist/resolvers.js";
import Icons from "file:///F:/%E6%B1%87%E6%80%BB/Electron/electron_ssh/node_modules/.pnpm/unplugin-icons@0.19.3_@vue+compiler-sfc@3.5.6_vue-template-compiler@2.7.15_webpack-sources@3.2.3/node_modules/unplugin-icons/dist/vite.js";
import IconsResolver from "file:///F:/%E6%B1%87%E6%80%BB/Electron/electron_ssh/node_modules/.pnpm/unplugin-icons@0.19.3_@vue+compiler-sfc@3.5.6_vue-template-compiler@2.7.15_webpack-sources@3.2.3/node_modules/unplugin-icons/dist/resolver.js";
import { createSvgIconsPlugin } from "file:///F:/%E6%B1%87%E6%80%BB/Electron/electron_ssh/node_modules/.pnpm/vite-plugin-svg-icons@2.0.1_vite@5.4.6_@types+node@22.5.5_sass@1.69.5_/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import UnoCSS from "file:///F:/%E6%B1%87%E6%80%BB/Electron/electron_ssh/node_modules/.pnpm/unocss@0.61.9_postcss@5.2.18_rollup@4.21.3_vite@5.4.6_@types+node@22.5.5_sass@1.69.5_/node_modules/unocss/dist/vite.mjs";
var __vite_injected_original_dirname = "F:\\\u6C47\u603B\\Electron\\electron_ssh";
var pathSrc = path.resolve(__vite_injected_original_dirname, "src");
var vite_config_default = defineConfig(({ mode }) => {
  const env = loadEnv(mode, process.cwd());
  return {
    resolve: {
      alias: {
        "@": pathSrc
      }
    },
    css: {
      preprocessorOptions: {
        scss: {
          javascriptEnabled: true,
          additionalData: `@use "@/styles/variables.scss" as *;`
        }
      }
    },
    plugins: [
      vue(),
      AutoImport({
        imports: ["vue"],
        eslintrc: {
          enabled: true,
          filepath: "./.eslintrc-auto-import.json"
        },
        dts: path.resolve(pathSrc, "types", "auto-imports.d.ts")
      }),
      Components({
        resolvers: [
          ElementPlusResolver(),
          IconsResolver({
            enabledCollections: ["ep"]
          })
        ],
        dts: path.resolve(pathSrc, "types", "components.d.ts")
      }),
      Icons({
        autoInstall: true
      }),
      createSvgIconsPlugin({
        iconDirs: [path.resolve(process.cwd(), "src/assets/icons")],
        symbolId: "icon-[dir]-[name]"
      }),
      UnoCSS({
        /* options */
      })
    ],
    base: "./",
    server: {
      host: "0.0.0.0",
      port: Number(process.env.VITE_PORT) || 3e3,
      open: true,
      //自动打开浏览器,
      proxy: {
        "/api": {
          // target: 'http://192.168.10.1:8001',
          // target: "http://192.168.5.74:3001",
          target: "http://192.168.101.105:3001",
          changeOrigin: true,
          rewrite: (path2) => path2.replace(/^\/api/, "")
        }
      }
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNl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